<html>
<head>
<title></title>
<link href="../Themes/Standard/Standard.css" rel="stylesheet" type="text/css" />
<script>
function _JsExp(){
	this.over=function(el){			
		el.className="over";
	};
	this.out=function(el){
		el.className="out";
	};	
}
var JsExp=new _JsExp();
	
</script>
</head>
<body>

#set ($cp = $RenderCtx.CurrentPage)
#set ($pl = $RenderCtx.PageList)
#set ($cc = $RenderCtx.CurrentContent)
#set ($ex = "_0_0/default.aspx")
#set ($cCat = $RenderCtx.CurrentCategory)
#set ($count = 0)

#set ($line = 0)

#macro( bindPage $PageList )
	#if($itemList)
		#set ($tempList = $itemList)
	#end
	#set ($line = ${line}+1)

#if ($line > 2)
  #set ($line = 1)
#end

#if ($PageList.Count>0)
	<tr class="toolbar${line}" >
	#foreach($p in $PageList)
		#if ($count == 0)
			#set($ID=0)
		#else
			#set($ID=$p.ID)
		#end
	
        <td valign="middle">

		#if($p.ID==$cp.ID)
			<a href="../${ID}${ex}" class="over" > $p.Name  </a>
		#else
			<a href="../${ID}${ex}" class="out" onmouseover="JsExp.over(this)" onmouseout="JsExp.out(this)">$p.Name </a>
		#end
	  </td>
	    #if($p.IsActive)
			#set ($itemList = $p.SubPageList)
		#end
		
	#end
    </tr>
#end
	#if($itemList)
		#if($itemList!=$tempList)
			#bindPage($itemList)
		#end	
	#end
 
#end
 
 
 
 #if($cCat)
   #set($catId="0")
 #else
   #set($catId=$cCat.ID)
#end


<div id="menu">	
	<table id="menu" cellpadding="0" cellspacing="0" border="0" valign="middle">
	#bindPage($pl)
	<table>
	
</div>
<div id="banner">
	<div class="logo">	
	</div>	
	<div class="search">
		<input type="textbox"> <a href="#"> Search</a>
		
		<a href="../RssFeed.aspx" class="rss">
		
		&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
		
		</a>
		
	</div>

	<div  class="linebanner">
	
	</div>
</div>
<div id="contentmain">
#if($PageID==0)
	#set ($cssClass=1)
	#set ($PageCatList = $RenderCtx.CurrentPage.CategoryList)	
		#foreach($CatList in $PageCatList)		
		<div id="block_${cssClass}">
			<div class="top">
				<div class="icon"></div>
				<div class="text">$CatList.Name</div>
			</div>
			#foreach($item in $CatList.CategoryList)		

			<div class="line">
				<span class="bulet"></span>
			<a href="../${RenderCtx.CurrentPage.ID}_${item.ID}_0/default.aspx"> $item.Name </a>
			</div>
			#end 
		#if( $cssClass==6)
			#set ($cssClass=1)	
		#else
			#set ($cssClass= ${cssClass} +1)		
		#end
	</div>
	#end	
	
#else
	<div id="leftcontent">
	#set($category=$RenderCtx.CurrentPage.CategoryList)
	#set($cPageID=$RenderCtx.CurrentPage.ID)	
	#foreach($item in $category)		
		<div class="header">
		${item.Name}
		</div>		
		#foreach($sub in $item.CategoryList)	
			<div class="line">
			<span class="bulet"></span>
			<a href="../${cPageID}_${sub.ID}_0/Default.aspx">${sub.Name}</a>			
			</div>			
		#end	
	#end	
	</div>
	
	<div id="right_content">
		
	#if($cc)
	<div id="content_view">
		<br>
		<div class="title"> $cc.Title </div>
	    <br>
	   <div class="content"> $cc.GetExtPropertyValue("Content")</div>
	</div>
	
	##bind node
	
	<div id="content_note">
		#foreach ( $cNode in $RenderCtx.NoteList )
			<br><div class="title"> $cNode.Name </div> 
			<br><div class="content" > $cNode.Description</div>	
		#end
	</div>
	
	#if($RenderCtx.ContentList.Count>1)
	<div id="content_list_orther">
		<ul>
		#foreach ( $ct in $RenderCtx.ContentList )
		<li><a href="../${cp.ID}_${catId}_${ct.ID}/default.aspx" class="title"> $ct.Title </a> $ct.CreatedDate</li>
		#end
		</ul>
	</div>
	#end
#else
	<div id="content_view">
		#foreach ( $ct in $RenderCtx.ContentList )
			<br><div><a href="../${cp.ID}_${catId}_${ct.ID}/default.aspx" class="title"> $ct.Title </a></div> 
			<br><div class="summary" > $ct.Summary</div>	
		#end
	</div>

#end 				
	</div>
#end
</div>

<div id="footer">
	
</div></body>
</html>